package gui.client;

import gui.GuiCommon;
import gui.common.BaseClientFrame;

import javax.swing.JFrame;
import javax.swing.JMenuBar;


public class Client extends BaseClientFrame{

	private static final long serialVersionUID = 1L;

	private static Client client=new Client();


	private Client() {
		super("Client");
		setUpUICompont();
		setUpEventListener();
		setVisible(true);
	}

	private void setUpUICompont() {
		GuiCommon.setWindowSize(this, 640, 480);
		JMenuBar menuBar=new ClientMenuBar();
		setJMenuBar(menuBar);
	}

	public static Client getInstance(){
		return client;
	}
	private void setUpEventListener() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

	public static void main(String[] args) {
		Client.getInstance();
	}
	
	

}
